<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
	layout:decorate="content">
<head>
<title>订单查询</title>
<style>
.clearfix:after {
	content: "";
	display: block;
	clear: both;
	height: 0;
	visibility: hidden;
}

.ddChange .ddul {
	float: left;
	margin-left: 20px;
}

.query .conditions>li {
	width: 45%;
}

.query .conditions label {
	width: 240px !important;
}

.searchList {
	min-height: 63px;
	padding: 10px;
	min-width: 1220px;
	overflow-x: auto;
}

.altrowstable tr>th {
	min-width: 120px;
}
</style>
</head>
<body>
	<div layout:fragment="content">
		<table style="width: 100%;" data-bind="with:file">
			<tbody>
				<tr>
					<td class="td_form01">订单编号:</td>
					<td class="td_form02"><input type="text"
						data-bind="value:orderid" /></td>
					<td class="td_form01">批次号:</td>
					<td class="td_form02"><input type="text"
						data-bind="value:batchnumber" /></td>
					<td class="td_form01">运单号:</td>
					<td class="td_form02"><input type="text"
						data-bind="value:expressnumber" /></td>
				</tr>
				<tr>
					<td class="td_form01">推送时间</td>
					<td class="td_form02"><input type="text" name="startDate"
						id="startDate"
						data-bind="datetimes:$root.start,date_format:'yyyy-MM-dd'">
						<span>&nbsp;&nbsp;-</span> <input type="text" name="endDate"
						id="endDate"
						data-bind="datetimes:$root.end,date_format:'yyyy-MM-dd'"></td>
					<td class="td_form01"></td>
					<td class="td_form02"></td>
					<td class="td_form01"></td>
					<td class="td_form02"></td>
				</tr>
				<tr>
					<td colspan="3" class="td_form01 text-center"><input
						type="button" class="buttonface" value="清空"
						data-bind="click:$root.empty" /></td>
					<td colspan="3" class="td_form01 text-center"><input
						type="button" class="buttonface" value="查询"
						data-bind="click:$root.search" /></td>
				</tr>
		</table>
		<div class="list_page">
			<table>
				<thead>
					<tr>
						<th class="td_top">序号</th>
						<th class="td_top">订单号</th>
						<th class="td_top">运单号</th>
						<th class="td_top">发货人</th>
						<th class="td_top">收货人</th>
						<th class="td_top">收货人地址</th>
						<th class="td_top">成交币值</th>
						<th class="td_top">订单总价</th>
						<th class="td_top">发送状态</th>
						<th class="td_top">操作</th>
						<th class="td_top">订单回执</th>
					</tr>
				</thead>
				<tbody id="data" data-bind="foreach:DataGrid.DataRows">
					<tr>
						<td data-bind="text:$index()+1" style="text-align: center;"></td>
						<td data-bind="text:orderid" style="text-align: center;"></td>
						<td data-bind="text:expressnumber" style="text-align: center;"></td>
						<td data-bind="text:sendusername" style="text-align: center;"></td>
						<td data-bind="text:collectionusername"
							style="text-align: center;"></td>
						<td data-bind="text:collectionuseraddress"
							style="text-align: center;"></td>
						<td data-bind="text:coin" style="text-align: center;"></td>
						<td data-bind="text:ordersum" style="text-align: center;"></td>
						<td data-bind="text:sendstatus" style="text-align: center;"></td>
						<td style="text-align: center;"><input type="button"
							class="pure-button pure-button-primary" value="修改"
							data-bind="click:$root.update" /> <input type="button"
							class="pure-button button-warning" value="重推"
							data-bind="click:$root.send" /></td>
						<td style="text-align: center;"><input type="button"
							class="pure-button pure-button-primary" value="查看回执"
							data-bind="click:$root.receipt" /></td>
					</tr>
				</tbody>
			</table>
		</div>

		<div id="div_update" data-bind="with:update_model"
			style="display: none;">
			<div class="ddChange row clearfix">
					<ul class="ddul">
						<li><label class="wid100">订&nbsp;单&nbsp;&nbsp;编&nbsp;号：</label>
							<input type="text" id="orderid" data-bind="value: orderid"></li>
						<li><label class="wid100">订&nbsp;单&nbsp;&nbsp;总&nbsp;价：</label>
							<input type="text" id="ordersum" data-bind="value: ordersum"></li>
						<li><label class="wid100">操&nbsp;作&nbsp;类&nbsp;型 ：</label> <input
							type="text" id="modifyMark" data-bind="value: modifymark"></li>
						<li><label class="wid100">模&nbsp;式&nbsp;代&nbsp;码 ：</label> <input
							type="text" id="billmode" data-bind="value: billmode"></li>
						<li><label class="wid100">许&nbsp;可&nbsp;证&nbsp;号 ：</label> <input
							type="text" id="licenseno" data-bind="value: licenseno"></li>
						<li><label class="wid100">征&nbsp;退&nbsp;类&nbsp;型 ：</label> <input
							type="text" id="chargetype" data-bind="value: chargetype"></li>
						<li><label class="wid100">支付交易号 ：</label> <input type="text"
							id="payNumber" data-bind="value: paynumber"></li>
						<li><label class="wid100">进出口标志 ：</label> <input type="text"
							id="ieType" data-bind="value: ietype"></li>
					</ul>
					<ul class="ddul">
						<li><label class="wid150">报&nbsp;关&nbsp;企&nbsp;业&nbsp;名&nbsp;称&nbsp;
								：</label> <input type="text" class="width200" id="declName"
							data-bind="value: declname"></li>
						<li><label class="wid150">收&nbsp;件&nbsp;人&nbsp;的&nbsp;名&nbsp;称
								&nbsp;：</label> <input type="text" class="width200"
							id="collectionUserName" data-bind="value: collectionusername"></li>
						<li><label class="width190">收&nbsp;件&nbsp;人&nbsp;的&nbsp;地&nbsp;址&nbsp;
								：</label> <input type="text" id="collectionUserAddress"
							data-bind="value: collectionuseraddress"></li>
						<li><label class="wid150">订&nbsp;单&nbsp;实&nbsp;际&nbsp;销&nbsp;售&nbsp;价&nbsp;格
								：</label> <input type="text" class="width200" id="goodsvalue"
							data-bind="value: goodsvalue"></li>
						<li><label class="wid150">电&nbsp;商&nbsp;海&nbsp;关&nbsp;备&nbsp;案&nbsp;名&nbsp;称
								：</label> <input type="text" class="width200" id="cbename"
							data-bind="value: cbename"></li>
						<li><label class="wid150">电&nbsp;商&nbsp;海&nbsp;关&nbsp;备&nbsp;案&nbsp;编&nbsp;号
								：</label> <input type="text" class="width200" id="cbecode"
							data-bind="value: cbecode"></li>
						<li><label class="wid150">成交币制（海关代码） ：</label> <input
							type="text" class="width200" id="coin2" data-bind="value: coin"></li>

					</ul>
					<ul class="ddul">
						<li><label class="wid150">发&nbsp;货&nbsp;人&nbsp;的&nbsp;名&nbsp;称&nbsp;
								：</label> <input type="text" class="width200" id="sendUserName"
							data-bind="value: sendusername"></li>
						<li><label class="width190">发货人所在国（海关代码） &nbsp;
								&nbsp; &nbsp; &nbsp;： </label> <input type="text" id="sendUserCountry"
							data-bind="value: sendusercountry"></li>
						<li><label class="width190">发货人所在国（检验检疫代码） ：</label> <input
							type="text" id="collUserCountryInSp"
							data-bind="value: collusercountryinsp"></li>
						<li><label class="width190">收货人所在国（检验检疫代码） ：</label> <input
							type="text" id="sendUserCountryInSp"
							data-bind="value: sendusercountryinsp"></li>

						<li><label class="width190">电商平台海关备案编号 &nbsp; &nbsp;：</label>
							<input type="text" id="ecpCode" data-bind="value: ecpcode"></li>
						<li><label class="width190">申报关企业海关备案编码 ：</label> <input
							type="text" id="declCode" data-bind="value: declcode"></li>
						<li><label class="width190">电商检验检疫CIQ备案编号 &nbsp; ：</label> <input
							type="text" id="cbeCodeInSp" data-bind="value: cbecodeinsp"></li>
					</ul>
			</div>
			<div class="section searchList" id="StuList">
				<table class="altrowstable" id="alternatecolor">
					<thead>
						<tr>
							<th>商品上架品名</th>
							<th>申报品名</th>
							<th>计量单位（海关代码）</th>
							<th>法定第一计量单位（海关代码）</th>
							<th>申报数量</th>
							<th>法定第一数量</th>
							<th>净重</th>
							<th>交易价格</th>
							<th>规格型号</th>
							<th>HS编码</th>
							<th>币制（海关代码）</th>
							<th>成交单价</th>
							<th>是否赠品</th>
							<th>币制（检验检疫代码）</th>
							<th>计量单位（检验检疫代码）</th>
							<th>原产国（检验检疫代码）</th>
							<th>商品货号</th>

						</tr>
					</thead>
					<tbody id="data" data-bind="foreach:$root.orderlist_arr">
						<tr>
							<td><input type="text" data-bind="value:shelfgoodsname"
								style="height: 24px; width: 80px;"></td>
							<td><input type="text" data-bind="value:goodname"
								style="height: 24px; width: 80px;"></td>
							<td><input type="text" data-bind="value:unit"
								style="height: 24px; width: 80px;"></td>
							<td class="bg-light-blue"><input type="text"
								data-bind="value:unit1" style="height: 24px; width: 80px;">
							</td>
							<td class="bg-teal"><input type="text"
								data-bind="value:amount" style="height: 24px; width: 80px;">
							</td>
							<td class="bg-fuchsia"><input type="text"
								data-bind="value:amount1" style="height: 24px; width: 80px;">
							</td>
							<td class="bg-maroon"><input type="text"
								data-bind="value:netweight" style="height: 24px; width: 80px;">
							</td>
							<td class="bg-navy"><input type="text"
								data-bind="value:ordersum" style="height: 24px; width: 80px;">
							</td>
							<td><input type="text" data-bind="value:specifications"
								style="height: 24px; width: 80px;"></td>
							<td><input type="text" data-bind="value:barcode"
								style="height: 24px; width: 80px;"></td>
							<td><input type="text" data-bind="value:coin"
								style="height: 24px; width: 80px;"></td>
							<td><input type="text" data-bind="value:goodprice"
								style="height: 24px; width: 80px;"></td>
							<td><input type="text" data-bind="value:flag"
								style="height: 24px; width: 80px;"></td>
							<td><input type="text" data-bind="value:coininsp"
								style="height: 24px; width: 80px;"></td>
							<td><input type="text" data-bind="value:unitinsp"
								style="height: 24px; width: 80px;"></td>
							<td><input type="text" data-bind="value:srccountryinsp"
								style="height: 24px; width: 80px;"></td>
							<td><input type="text" data-bind="value:goodid"
								style="height: 24px; width: 180px;"></td>
						</tr>
					</tbody>
				</table>
			</div>
			<div class="ddBtn fr">
				<button class="btn btn-default" data-bind="click:$root.update_save">确定</button>
				<button  data-bind="click:$root.layerClose">返回</button>
			</div>
		</div>
		<div id="pop_div_receipt" style="display: none;">
			<textarea id="content" style="height: 512px; width: 548px;"></textarea>
		</div>
		<div th:include="pager :: pager"></div>
	</div>
</body>
</html>